﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SuperWebSocketServerTest
{
    public partial class ProgressBarForm : Form
    {
        public string FileName { get; set; }
        public string Describtion { get; set; }

        public ProgressBarForm()
        {
            InitializeComponent();
        }

        public ProgressBarForm(string Name, string Describtion) : this()
        {
            this.FileName = Name;
            this.Describtion = Describtion;
        }

        public void ReportProgressValue(long Value, long Total, string Precent)
        {
            this.progressBar1.Value = (int)Value;
            this.label1.Text = Describtion + " " + Precent;
        }

    }
}
